//
//  MCViewAutoFill.h
//  MirkoLibTest
//
//  Created by Mirko on 2017/3/31.
//  Copyright © 2017年 Mirko. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "UIView+MCAutoFill.h"

@interface MCViewAutoFill : NSObject

//填充的View
@property (nonatomic, strong) NSMutableArray *viewList;
//自动填充数据
@property (nonatomic, strong) NSMutableArray *autoFillDatas;

@property (nonatomic, weak) UIViewController *viewController;

-(instancetype) initWithController:(UIViewController *) controller;

//自动填充
-(void) autoFillWithDatas:(NSArray *) datas;

//单独填充View
-(void) autoFillItem:(NSString *) string index:(NSInteger) viewIdx;


//sup method
-(NSArray *) findValidViewWithRootView:(UIView *) view;
-(NSMutableArray *)listSubviewsOfView:(UIView *) targView rootView:(UIView *) rootView;
-(NSArray *) sortViewList:(NSMutableArray *) views rootView:(UIView *) view;
-(void) releasSource;

@end
